//
// Created by 喵喵乐 on 2023/4/9.
//

#include "exercise_str.h"


void operation_str() {

        string bigNews("I saw Elvis in a UFO.");

        cout << bigNews << endl;

        cout << "Size = " << bigNews.size() << endl;
        cout << "Capacity = " << bigNews.capacity() << endl;

        bigNews.insert(1, "thought I");

        cout << "Insert()" << bigNews << endl;


        bigNews.reserve(400);

        cout << bigNews << endl;


}
